﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Images
{
    public interface IImage
    {
        void AddImage(Model.Image image, ref Model.NutriLeafDBEntities context);

        void RemoveImage(int id, ref Model.NutriLeafDBEntities context);

        void RemoveImage(Model.Image image, ref Model.NutriLeafDBEntities context);

        Model.Image GetImage(int id, ref Model.NutriLeafDBEntities context);

        void Update(Model.Image image, ref Model.NutriLeafDBEntities context);

        string GetImageFile(int id, ref Model.NutriLeafDBEntities context);
    }
}